package com.sports.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.List;


@Validated
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel
public class SysUserReqDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户编码 VARCHAR
     */
    @ApiModelProperty(value = "用户编码")
    @JsonProperty(index = 10)
    private String username;
    /**
     * 密码 VARCHAR
     */
    @ApiModelProperty(value = "密码")
    @JsonProperty(index = 20)
    private String password;
    /**
     * 姓名 VARCHAR
     */
    @ApiModelProperty(value = "姓名")
    @JsonProperty(index = 30)
    private String name;
    /**
     * 手机号 VARCHAR
     */
    @ApiModelProperty(value = "手机号")
    @JsonProperty(index = 40)
    private String phone;
    /**
     * 邮箱 VARCHAR
     */
    @ApiModelProperty(value = "邮箱")
    @JsonProperty(index = 50)
    private String email;
    /**
     * 账号是否启用，1 启用 BIT
     */
    @ApiModelProperty(value = "账号是否启用，1 启用")
    @JsonProperty(index = 60)
    private Boolean enable;

    private List<String> roleCodes;

    private String newPassword;

    private Integer type;
}






